package com.ikas.ai.server.module.appraise.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wuyf
 * @date 2023/10/26 18:58
 */
@Getter
@AllArgsConstructor
public enum TriggerTypeEnum {
    /**
     *
     */
    RP_TIME_TOO_LONG(1, "响应时间过长");
    private int value;
    private String desc;

    public static String getDescByValue(int value) {
        for (TriggerTypeEnum tgEnum : TriggerTypeEnum.values()) {
            if (tgEnum.getValue() == value) {
                return tgEnum.getDesc();
            }
        }
        return null;
    }

}
